﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EnhancedWebControls;

namespace EwcControlTest
{
    public partial class EnhancedTextBoxes : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string skin = "";
            if (((Site1)Master).ApplySkin)
                skin = "MySkin";
            EnhancedTextBox1.CssClass = skin;
            EnhancedTextBox2.CssClass = skin;
            EnhancedTextBox3.CssClass = skin;
            EnhancedTextBox4.CssClass = skin;
            EnhancedTextBox5.CssClass = skin;
            EnhancedTextBox6.CssClass = skin;
            EnhancedTextBox8.CssClass = skin;
            EnhancedTextBox7.CssClass = skin;
            txtTestBox1.CssClass = skin;
            txtTestBox2.CssClass = skin;
            lblResults1.Visible = false;
            lblResults2.Visible = false;
        }
        protected void TestAutoPostBackNormal(object sender, EventArgs e)
        {
            lblResults1.Text = "You typed: " + ((EnhancedTextBox)sender).Text;
            lblResults1.Visible = true;
        }
        protected void TestAutoPostBackOnKeyUp(object sender, EventArgs e)
        {
            lblResults2.Text = "You typed: " + ((EnhancedTextBox)sender).Text;
            lblResults2.Visible = true;
        }
    }
}